import request from '@/utils/request'

// 获取
export const deptUserTree = () => {
    return request({
        url: '/system/user/deptUserTree',
        method: 'get'
    })
}

export function reportTemplate(data) {
    return request({
        url: '/framework/reportTemplate',
        method: 'post',
        data: data
    })
}

export const reportTemplateList = (query) => {
    return request({
        url: '/framework/reportTemplate/list',
        method: 'get',
        params: query
    })
}

export const reportTemplateDetails = (reportTemplateId) => {
    return request({
        url: '/framework/reportTemplate/' + reportTemplateId,
        method: 'get'
    })
}
export function reportTemplateEdit(data) {
    return request({
        url: '/framework/reportTemplate',
        method: 'put',
        data: data
    })
}

export const reportTemplateDel = (reportTemplateIds) => {
    return request({
        url: '/framework/reportTemplate/' + reportTemplateIds,
        method: 'delete'
    })
}